package com.design.cmd;

/**
 * @author cxx
 * @create 2020-04-20 16:52
 **/
public class OpenCommand implements Command {

    private Receiver receiver;

    private String cmd;

    public OpenCommand(Receiver receiver) {
        this.receiver = receiver;
        this.cmd = "open";
    }

    @Override
    public void execute() {
        receiver.action(this.cmd);
    }
}
